﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Class="TwitterWallWPF.MainWindow"
    Title="MainWindow"
    Height="350"
    Width="525">
    <Window.Resources>
        <DataTemplate
            x:Key="DataTemplate1">
            <Grid
                d:DesignWidth="229"
                d:DesignHeight="99">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition
                        Width="70.074" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Image
                    Height="Auto"
                    Width="Auto"
                    Margin="4"
                    Source="{Binding ImageUrl}"/>
                <StackPanel
                    Margin="8"
                    Grid.Column="1">
                    <TextBlock
                        Text="{Binding ScreenName}"
                        TextWrapping="Wrap"
                        Margin="0,0,0,4"
                        d:LayoutOverrides="Width" />
                    <TextBlock
                        Text="{Binding Text}"
                        TextWrapping="Wrap"
                        Margin="0,0,0,4" />
                </StackPanel>
            </Grid>
        </DataTemplate>
    </Window.Resources>
    <Grid>
    	<Grid.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="Black" Offset="0"/>
    			<GradientStop Color="Black" Offset="1"/>
    			<GradientStop Color="#FF4B4B4B" Offset="0.891"/>
    		</LinearGradientBrush>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="87.048" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <ListBox
            x:Name="_list"
            Grid.Row="1"
            ItemTemplate="{DynamicResource DataTemplate1}" Background="{x:Null}" Foreground="White" />
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition
                    Height="0.5*" />
                <RowDefinition
                    Height="0.5*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition
                    Width="74.823" />
                <ColumnDefinition />
                <ColumnDefinition
                    Width="55" />
            </Grid.ColumnDefinitions>
            <Label
                Content="User"
                x:Name="label1"
                Margin="8" Background="#00000000" Foreground="White" />
            <TextBox
                x:Name="_userName"
                Grid.Column="1"
                Margin="8"
                Text="TheOliver" />
            <Label
                Content="Hastag"
                x:Name="label2"
                Grid.Row="1"
                Margin="8" Background="#00000000" Foreground="White" />
            <TextBox
                x:Name="_hashtagName"
                Grid.Column="1"
                Grid.Row="1"
                Margin="8"
                Text="Microsoft" />
            <Button
                Content="Load"
                x:Name="_user"
                Grid.Column="2"
                Margin="8"
                Click="_user_Click" />
            <Button
                Content="Load"
                x:Name="_hashtag"
                Grid.Column="2"
                Grid.Row="1"
                Margin="8"
                Click="_hashtag_Click" />
        </Grid>
    </Grid>
</Window>
